package backend;

import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.util.Properties;

public class SUProperties extends Properties {
	File file;
	public SUProperties() {
		try {
			file = new File(PathHandler.GetLocalPath()
			+ PathHandler.PROPERTIES);
			if (file.exists())
				this.load(new FileInputStream(file));
			else
				saveProperties();
		} catch (IOException e) {
		}
	}

	public void saveProperties() {
		try {
			this.store(new FileOutputStream(file), null);
		} catch (IOException e) {
		}
	}

	public static final String HEIGHT = "window.height";
	public static final String WIDTH = "window.width";
	public static final String Y_LOCATIONS = "window.y_location";
	public static final String X_LOATION = "window.x_location";
	public static final String BG_COLOR = "bgcolor";
	
	
	
	public static void main(String[] args) {
		SUProperties props = new SUProperties();
	}
}
